var Consts = function() {
  this.RES_CODE = {
    SUC_OK: 1, // success
    ERR_FAIL: -1, // Failded without specific reason
    ERR_USER_NOT_LOGINED: -2, // User not login
    ERR_CHANNEL_DESTROYED: -10, // channel has been destroyed
    ERR_SESSION_NOT_EXIST: -11, // session not exist
    ERR_CHANNEL_DUPLICATE: -12, // channel duplicated
    ERR_CHANNEL_NOT_EXIST: -13 // channel not exist
  };

  this.MESSAGE = {
    RES: 200,
    ERR: 500,
    PUSH: 600
  };

  this.EntityType = {
    PLAYER: 'player',
    TREASURE: 'treasure'
  }
}

module.exports = {
  id: "consts",
  func: Consts
}